<?php echo $this->Html->link("Add a new user", array("action" => "add")); ?>
<?php echo $this->Form->Create(array("action" => "delete")); ?>
<table>
	<tr>
		<th></th>
		<th>Username</th>
		<th>Articles</th>
		<th>Role</th>
		<th>Email</th>
		<th>Created</th>
		<th>Modified</th>
		<th>ID</th>
	</tr>
	<?php foreach($users as $user): ?>
	<tr>
		<td><?php echo $this->Form->checkbox('selectedUsers.', array("value" => $user['User']['id'], 'hiddenField' => false)); ?></td>
		<td><?php echo $this->Html->link($user['User']['username'], array("action" => "edit/" . $user['User']['id'])); ?></td>
		<td><?php echo $user['User']['article_count']; ?></td>
		<td><?php echo $user['Role']['name']; ?></td>
		<td><?php echo $user['User']['email']; ?></td>
		<td><?php echo $user['User']['created']; ?></td>
		<td><?php echo $user['User']['modified']; ?></td>
		<td><?php echo $user['User']['id']; ?></td>
	</tr>
	<?php endforeach; ?>
</table>
<?php echo $this->Form->End("Delete Selected"); ?>